package com.yantong.service;

import com.yantong.utils.PageUtils;
import com.yantong.pojo.Advert;
import com.yantong.pojo.vo.AdvertVos;
import com.yantong.pojo.BannersReqDto;
import com.yantong.pojo.vo.AdvertVo;

import java.util.List;

/**
 * @author kanghaixin
 * @date 2018/8/29.11:45
 */
public interface AdvertService {
    /**
     * 广告列表，分页
     * @param baTypeId
     * @param advName
     * @param centreId
     * @param offset
     * @param limit
     * @return
     */
    PageUtils<Advert> listAdverts(Integer baTypeId, String advName, Long centreId, Long teamId, int offset, int limit);

    /**
     * 不显示操作
     * @param advertId
     * @return
     */
    int disableShow(Long advertId);

    /**
     * 显示操作
     * @param advertId
     * @return
     */
    int enableShow(Long advertId);

    /**
     * 删除广告信息
     * @param advertId
     * @return
     */
    int removeAdvert(Long advertId);

    /**
     * 批量删除
     * @param advertIds
     * @return
     */
    int batchRemove(List<Long> advertIds);

    /**
     * 保存广告信息
     * @param advert
     * @return
     */
    int saveAdvert(Advert advert);

    /**
     * 保存广告信息
     * @param advertVo
     * @return
     */
    int addAdvert(AdvertVos advertVo);

    /**
     * 编辑广告
     * @param advert
     * @return
     */
    int updateAdvert(Advert advert);

    /**
     * 获取广告详情
     * @param id
     * @return
     */
    Advert getByKey(Long id);

    /**
     * 获取广告列表 不分页
     * @param type
     * @param centreId
     * @return
     */
    List<Advert> listAdverts(Integer type, Long centreId);

	List<AdvertVo> listAdverts(BannersReqDto reqDto);
}
